package com.bzxgc.sgwer.service.user;

import com.bzxgc.sgwer.entity.user.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleService {

    /**
     * 批量添加
     * @param userIds
     * @param roleIds
     * @param roleId 主角色id
     */
    void addUserRoleBatch(Long[] userIds, Long[] roleIds, Long roleId);

    /**
     * 根据用户id删除
     */
    void deleteUserRoleByUserIds(Long[] userIds);

    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    List<UserRole> getUserRoleByUserId(Long userId);

}
